import { createStore } from 'vuex'

export default createStore({
  state: {
	  //声明公共数据
	  user:{}
  },
  getters: {
	  //计算属性
  },
  mutations: {
	  //同步修改
	  user(state,u){
		  state.user=u
	  }
  },
  actions: {
  },
  modules: {
  }
})
